<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport"
    content="width=device-width, initial-scale=1, maximum-scale=1,minimum-scale=1, user-scalable=no" />
  <title>flex属性</title>
  <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
  <link rel="stylesheet" href="./css/common.css" type="text/css" />
  <link rel="stylesheet" href="./css/flexs.css">
</head>

<body>
  <ul class="box">
    <li class="item">1</li>
    <li class="item">2</li>
    <li class="item">3</li>
  </ul>
</body>

</html>
<!--
  flex是flex-grow flex-shrink flex-basis的复合写法，默认值是: 0 1 auto;
  flex: 1; // 1 1 0% 等比例放大和缩小
  flex: auto; // 1 1 auto 等比例放大和缩小
  flex: none; // 0 0 auto 不放大也不缩小
  flex: 2; //  2 1 0%
 -->